#!/usr/bin/env python3
"""
MixVideo 安装脚本
"""

from setuptools import setup, find_packages

# 读取README文件
def read_readme():
    with open("README.md", "r", encoding="utf-8") as f:
        return f.read()

# 读取requirements文件
def read_requirements():
    with open("requirements.txt", "r", encoding="utf-8") as f:
        return [line.strip() for line in f if line.strip() and not line.startswith("#")]

setup(
    name="mixvideo",
    version="0.1.0",
    description="智能视频混剪系统 - 基于插件架构的视频处理工具",
    long_description=read_readme(),
    long_description_content_type="text/markdown",
    author="MixVideo Team",
    author_email="team@mixvideo.com",
    url="https://github.com/mixvideo/mixvideo",
    packages=find_packages(where="src"),
    package_dir={"mixvideo": "src"},
    python_requires=">=3.9",
    install_requires=read_requirements(),
    extras_require={
        "dev": [
            "pytest>=7.4.3",
            "pytest-asyncio>=0.21.1", 
            "pytest-cov>=4.1.0",
            "black>=23.11.0",
            "flake8>=6.1.0",
            "mypy>=1.7.1",
            "pre-commit>=3.6.0",
        ]
    },
    entry_points={
        "console_scripts": [
            "mixvideo=mixvideo.cli:main",
            "mixvideo-gui=mixvideo.gui:main",
            "mixvideo-server=mixvideo.server:main",
        ]
    },
    classifiers=[
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Programming Language :: Python :: 3",
        "Programming Language :: Python :: 3.9",
        "Programming Language :: Python :: 3.10", 
        "Programming Language :: Python :: 3.11",
        "Topic :: Multimedia :: Video",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    keywords="video processing ai classification ffmpeg opencv",
    project_urls={
        "Bug Reports": "https://github.com/mixvideo/mixvideo/issues",
        "Source": "https://github.com/mixvideo/mixvideo",
        "Documentation": "https://mixvideo.readthedocs.io",
    },
    include_package_data=True,
    zip_safe=False,
)
